#include "includes.h"

Exception::Exception(const int i, const char *f, const char *text)
{
	string str1(f);
	int loc = str1.find_last_of("/");
	string str2 = str1.substr(loc+1, str1.size()-loc);	;
	cout << "\n\nAn exception has been thrown\n";
	cout << "File:\t" << str2 << endl;
	cout << "Line:\t" << i << endl;
	cout << "Cause:\t" << text << endl;
}

Exception::~Exception()
{
}
